package com.leadingsoft.pwxk.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leadingsoft.pwxk.converter.DrainManaConverter;
import com.leadingsoft.pwxk.dto.DrainManaDto;
import com.leadingsoft.pwxk.repository.DrainManaRepository;
import com.leadingsoft.pwxk.service.DrainManaService;

/**
 * @author: lipan 2018年5月17日
 * @description: ( 排污节点及污染治理设施信息 )
 * 
 */

@Service
public class DrainManaServiceImpl implements DrainManaService {

	@Autowired
	private DrainManaRepository drainManaRepository;

	@Autowired
	private DrainManaConverter drainManaConverter;

	@Override
	public DrainManaDto get(String dataid) {
		return drainManaConverter.toDto(drainManaRepository.findByDataid(dataid));
	}

}
